﻿using System.Windows;
using HelloWorld.Shared.Models;

namespace HelloWorld
{
    /// <summary>
    /// Default Silverlight Page
    /// </summary>
    public partial class Demo2
    {
        private readonly MainPageModel _model = new MainPageModel();

        public Demo2()
        {
            InitializeComponent();
            DataContext = _model;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            _model.Doit();
        }
    }
}
